<template>
  <h2>A组件</h2>
</template>
<script lang="ts" setup>
import { onMounted, useAttrs } from "vue";
const porps = defineProps(["aa"]);
const emits = defineEmits(["aa"]);
let attrs = useAttrs();
onMounted(() => {
  // useAttrs() 接收所有没有被声明接收的props数据和所有没有被声明接收的自定义事件
  console.log(attrs);
});
</script>

<style lang="less" scoped></style>
